package com.example.demo.utils;

/**
 * *********************************************************************
* ResponseResult.java
*
* @copyright   Copyright: 2015-2020
* @creator     xfw2218<br/>
* @create-time 2018年6月26日 下午4:18:31
* @revision    $Id:  *
**********************************************************************
 */
public class ResponseResult<T> {

    private boolean succuss=false;
    private Integer code;
    private String msg;
    private T responseDTO;

    public boolean isSuccuss() {
        return succuss;
    }

    public void setSuccuss(boolean succuss) {
        this.succuss = succuss;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getResponseDTO() {
        return responseDTO;
    }

    public void setResponseDTO(T responseDTO) {
        this.responseDTO = responseDTO;
    }

    @Override
    public String toString() {
        return "ResponseResult{" +
                "succuss=" + succuss +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                ", responseDTO=" + (null != responseDTO ?responseDTO.toString():null) +
                '}';
    }
}
